﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RapidTestMapMaker
{
    public partial class KeyComboDisplayUserControl : UserControl
    {
        public KeyComboDisplayUserControl()
        {
            InitializeComponent();
        }

        private Keys keys;
        public Keys Keys
        {
            get { return keys; }
            set 
            {
                keys = value;

                buttonCtrl.FlatStyle = (value & Keys.Control) != Keys.None ? FlatStyle.Standard : FlatStyle.Popup;
                buttonAlt.FlatStyle = (value & Keys.Alt) != Keys.None ? FlatStyle.Standard : FlatStyle.Popup;
                buttonShift.FlatStyle = (value & Keys.Shift) != Keys.None ? FlatStyle.Standard : FlatStyle.Popup;
            }
        }
    }

    
}
